package com.leanyuan.main.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leanyuan.main.domain.RepReg;
import com.leanyuan.main.util.Form$RegProvider;
import com.leanyuan.main.util.RepRegDto;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@Repository
public interface RepRegMapper_M extends BaseMapper<RepReg> {
    @Results(
            id="regMap",value = {
                    @Result(property = "repForm.fromName",column = "from_name")
    }
    )
    @SelectProvider(type = Form$RegProvider.class,method = "selectRepRegSql")
    public List<RepReg> findReg$FormName(@Param("page") Page<RepReg> page, @Param("dto") RepRegDto repRegDto);
}
